<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test upload</title>
</head>

<body>
<form enctype="multipart/form-data" action="../ucm/UCUser/UCUploadPhoto.php" method="post"> 
<input type="hidden" name="max_file_size" value="10240">
 <input name="file" type="file">
 <input type="submit" value="Submit"> </form>
 
   <?PHP
if ($_GET[id]== 1){
      echo "<script language='javascript'>"; 
      echo "alert('file Type wrong!');"; 
      echo "</script>";
}else if ($_GET[id]== 2){
      echo "<script language='javascript'>"; 
      echo "alert('NOT BE UPLOAD!');"; 
      echo "</script>";
}else if ($_GET[id]== 3){
      echo "<script language='javascript'>"; 
      echo "alert('OVER MAX SIZE!');"; 
      echo "</script>";
}
 ?>
 <?php 
 session_start(); 
$_SESSION['Loginname'] = 'heng';
?>
</body>
</html>
